﻿using FDStudio.Core.Entities;
using FDStudio.Core.Entities.Factories;
using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Controllers
{
    /*
     CreatedOn: 2018-01-25
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// Api控制器接口
    /// </summary>
    public interface IApiController : IController
    {
        IApiResultFactory ApiResultFactory { get; }

        IApiResult Success(string message = "");

        IApiResult Failure(string message = "");

        IApiResult<T> Success<T>(T result, string message = "");
    }
}
